﻿using CommunityToolkit.Mvvm.ComponentModel;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models.Entities.SystemEntities
{
    [SugarTable("sys_dictionaryinfo")]
    public class DictionaryInfo: ObservableObject
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int? Id { get; set; }
        public string? Name { get; set; }
        public string? Value { get; set; }
        public int? ParentId { get; set; }
        public string? Remark { get; set; }
        [SugarColumn(IsIgnore=true)]
        public List<DictionaryInfo>? Children { get; set; }
    }
}
